
//设置变量 
@bg-color: #b7d4a8;
// q清除默认样式
*{
  margin:0;
  padding: 0;
  // 改变盒子模型的计算方式
  box-sizing: border-box;
}
body{
  font: bold 20px  "Courier";
}
#main{
  width: 360px;
  height: 420px;
  background-color: @bg-color;
  margin: 0 auto ;
  border: 10px solid black;
  border-radius: 40px;
//  弹性盒模型
 display:flex;
 //设置主轴的方向
 flex-flow: column;
 //设置辅轴的对齐方式
 align-items: center;
 //设置主轴的对齐方式
 justify-content: space-around;

#stage{
  width: 304px;
  height: 304px;
  border:2px solid black;
  position: relative;
#snake{
  &>div{
    width: 10px;
    height: 10px;
    background-color: black;
    border: 1px solid @bg-color;
    //开启绝对定位
    position: absolute;
  }
}
#food{
  width: 10px;
  height: 10px;
  position: absolute;
  left: 40px;
  top:100px ;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-content: space-between;
  &>div{
    width: 4px;
    height: 4px;
    background-color: black;
    transform: rotate(45deg);
  }
}
}
#score-panel{
  width: 300px;
  display: flex;
  // 设置主轴的排列方式
  justify-content: space-between;
}
}